import request from '@/router/axios'

export function startProcess(obj) {
  return request({
    url: '/act/bill/startProcess',
    method: 'post',
    data: obj
  })
}

export function billDetail(id, taskId) {
  let url = taskId ? '/act/bill/detail/' + id + '?taskId=' + taskId : '/act/bill/detail/' + id
  return request({
    url: url,
    method: 'get'
  })
}

export function billTo(query) {
  return request({
    url: '/act/bill/todo',
    method: 'get',
    params: query
  })
}

export function allOwn(query) {
  return request({
    url: '/act/bill/allOwn',
    method: 'get',
    params: query
  })
}

export function billDone(query) {
  return request({
    url: '/act/bill/done',
    method: 'get',
    params: query
  })
}

export function billSubmit(obj) {
  return request({
    url: '/act/bill/submitTask',
    method: 'post',
    data: obj
  })
}

export function billRevoke(obj) {
  return request({
    url: '/act/bill/revokeTask',
    method: 'post',
    data: obj
  })
}